<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/news_index')}" <if condition="$cur eq 新闻管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">新闻管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/class_index')}" <if condition="$cur eq 新闻分类">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">新闻分类</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/activity_index')}" <if condition="$cur eq 活动管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='3'>
				<div class="lineColumn pos_abs"></div>
				<label for="">活动管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/sign_up')}" <if condition="$cur eq 活动报名">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='4'>
				<div class="lineColumn pos_abs"></div>
				<label for="">活动报名</label>
				<div class="rightArrow">
				</div>
			</a>
			
		</div>


		<!-- 3.垂直导航分类页面 -->		
		<!-- 3.1 新闻管理 -->
		<div class="contentArea tabPage actived">
			<!-- 3.2.1 新闻管理 -->
			<div id="departmentManage">
				<form action="" method="POST">
				<div class="caTitleBox dpflxr">
					<label for="" class="caTitle">新闻管理</label>
					<div class="dpflxr">

						<input type="text" class="searchBox" name="title" value="{$title}" placeholder="请输入标题"/>
						<div><button type="submit"  class="caBtn searchBtn">查询</button></div>
						<a href="{:U('Mechanism/news_add')}" class="caBtn ">新增新闻</a>
					</div>
				</div>
				</form>
				<div class="caTable card">
					<table border="0" width="100%">
							<tbody>
								<tr>
									<th scope="col" width="8%" style="border-top-left-radius: 6px;">排序</th>
									<th scope="col" width="45%" style="max-width: 50%;">标题</th>
									<th scope="col" width="10%">来源</th>									
									<th scope="col" width="11.25%">分类</th>
									<th scope="col" width="12.5%">时间</th>
									<th scope="col" width="24%" style="border-top-right-radius: 6px;box-sizing: border-box; " >操作</th>
								</tr>
								<volist name="list" id="item">
									<tr>
										<td >{$item['id']}</td>
										<td >{$item['title']}</td>
										<td>{$item['source']}</td>
										<td>{$item['class_name']}</td>
										<td>{$item['create_time']}</td>
										<td style=""><a href="{:U('Mechanism/news_add',array('id'=>$item['id']))}">编辑</a><a href="{:U('Mechanism/news_del',array('id'=>$item['id']))}">删除</a><if condition="$item['recommend'] eq 1"><a href="{:U('Mechanism/recommend',array('id'=>$item['id'],'recommend'=>2))}">推荐</a><else /><a href="{:U('Mechanism/recommend',array('id'=>$item['id'],'recommend'=>1))}">取消推荐</a></if></td>
									</tr>	
								</volist>
							</tbody>
					</table>
				</div>
					<div class="page">
			            {$_page}
			        </div>
			</div>
			
			
		</div>
		
	


	</body>
</html>
